#pragma once
#include <ctime>
#include <iostream>
#include "location.h"
using namespace std;
class player
{
public:
	int player_code; // 0 to 3
	int x, y;
	int current_location_code;
	int move1, move2, move;
	int is_jail;//0 by default, 1 if yes
	int is_get_out_card;
	int turns_since_free;
	int is_eliminated;
	int money; //player's money
	int properties[20]; // each property index corresponds to location code, 1 represents owned, 0 not owned, -1 mortgaged
	//int is_house[20]; //index corresponds to location code, value gives number of houses
	//int is_hotel[20]; //index corresponds to location code, value gives number of hotels
	player(int pcode);
	char *rand_dice(int i, location loc_arr[]);
	int isequal();
	int net_worth(location loc_arr[]);
	//void traversal();
	//void traversal(int movement);
	~player();
};

